package cn.jinjimi.app.custom.event;

import cn.jinjimi.app.controller.event.DataEvent;
import cn.jinjimi.app.custom.entity.Custom;

public class CustomChangeEvent extends DataEvent {
    public static final int EVENT_ADD = 1;
    public static final int EVENT_DELETE = 2;
    public static final int EVENT_UPDATE = 3;
    public int changeEvent;
    public Custom data;

    public CustomChangeEvent(int event) {
        this.changeEvent = event;
    }

    public CustomChangeEvent(Custom custom) {
        this.data = custom;
    }

    public CustomChangeEvent(Custom custom, int event) {
        this.changeEvent = event;
        this.data = custom;
    }

}
